package com.yycx.module.bus.provider.controller.hy;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import com.yycx.common.mybatis.model.*;
import java.util.Map;

import org.springframework.web.bind.annotation.RestController;
import com.yycx.common.springmvc.base.BaseController;
import com.yycx.module.bus.client.entity.hy.BusHyorderSendinfo;
import com.yycx.module.bus.provider.service.hy.BusHyorderSendinfoService;


/**
 * 发货信息控制器
 *
 * @author flyme
 * @date 2023-09-30
 */
@RestController
@RequestMapping("/bus/bhs/")
public class BusHyorderSendinfoController extends BaseController<BusHyorderSendinfoService, BusHyorderSendinfo>  {

    @ApiOperation(value = "发货信息-分页列表", notes = "发货信息分页列表")
    @GetMapping(value = "page")
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "发货信息-列表", notes = "发货信息列表")
    @GetMapping(value = "list")
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }

    @ApiOperation(value = "发货信息-添加", notes = "添加发货信息")
    @PostMapping(value = "save")
    public ResultBody save(@RequestParam(required = false) Map params) {
        return bizService.add(params);
    }

    @ApiOperation(value = "发货信息-更新", notes = "更新发货信息")
    @PostMapping(value = "update")
    public ResultBody update(@RequestParam(required = false) Map params) {
        return bizService.edit(params);
    }

    @ApiOperation(value = "发货信息-删除", notes = "删除发货信息")
    @PostMapping(value = "remove")
    public ResultBody remove(@RequestParam(required = false) Map params) {
        return bizService.delete(params);
    }


    @ApiOperation(value = "发货信息-详情", notes = "发货信息详情")
    @GetMapping(value = "get")
    public ResultBody get(@RequestParam(required = false) Map params) {
        return bizService.get(params);
    }

}
